<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{if $page_title}{$page_title} - {/if}{if $show_shop_titile eq 1}{function name='app_conf' value='SHOP_SEO_TITLE'} - {/if}{if $show_city_title}{if $city_title}{$city_title}{/if}{$shop_info.SHOP_TITLE}{/if}</title>
<meta name="keywords" content="{if $page_keyword}{$page_keyword}{/if}{$shop_info.SHOP_KEYWORD}" />
<meta name="description" content="{if $page_description}{$page_description}{/if}{$shop_info.SHOP_DESCRIPTION}" />
<?php
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/style.css";
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/weebox.css";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.bgiframe.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.weebox.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.pngfix.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/lazyload.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/op.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/op.js";
if(app_conf("APP_MSG_SENDER_OPEN")==1)
{
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/msg_sender.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/msg_sender.js";
}
if($this->_var['APP_INDEX']=='tuan')
{
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/tuan.css";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/tuan.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/tuan.js";
}
else
{
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/main.css";
}
$h_city_id = intval($GLOBALS['deal_city']['id']);
$h_cache_param['city_id'] = $h_city_id;
$h_cache_param['deal_type'] = 0;				
$index_result = load_auto_cache("store_filter_nav_cache",$h_cache_param);
//print_r($index_result['area_list']);
$GLOBALS['tmpl']->assign("index_cate_list",$index_result['cate_list']);
$GLOBALS['tmpl']->assign("index_area_list",$index_result['area_list']);
$GLOBALS['tmpl']->assign("index_avg_price",$index_result['avg_price_list']);
$GLOBALS['tmpl']->assign("index_purpose_list",$index_result['purpose_list']);
$GLOBALS['tmpl']->assign("index_tag_group",$index_result['tag_group']);
?>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$pagecss"}" />

<script type="text/javascript">
var APP_ROOT = '{$APP_ROOT}';
var CART_URL = '{url x="shop" r="cart"}';
var CART_CHECK_URL = '{url x="shop" r="cart#check"}';
var LOADER_IMG = '{$TMPL}/images/lazy_loading.gif';
var ERROR_IMG = '{$TMPL}/images/image_err.gif';
{if app_conf("APP_MSG_SENDER_OPEN") eq 1}
var send_span = {function name="app_conf" v="SEND_SPAN"}000;
{/if}
</script>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/lang.js"></script>
<script type="text/javascript" src="{function name="parse_script" v="$pagejs" c="$cpagejs"}"></script>

</head>

<body>
{if $vote}
<a id="vote" href="{url x="shop" r="vote"}" target="_blank"></a>
{/if}
<div id="dropdown">	
	<a href="javascript:void(0);" ctl="store" act="index" action="{$APP_ROOT}/store.php" id="search_store">搜商家</a>
	<a href="javascript:void(0);" ctl="fcate" act="index" action="{$APP_ROOT}/store.php" id="search_fcate">{$LANG.SEARCH_TYPE_YOUHUI}</a>
	<a href="javascript:void(0);" ctl="ycate" act="index" action="{$APP_ROOT}/store.php" id="search_ycate">搜代金</a>
	<a href="javascript:void(0);" ctl="tuan" act="index" action="{$APP_ROOT}/store.php" id="search_tuan">搜团购</a>
	<a href="javascript:void(0);" ctl="event" act="index" action="{$APP_ROOT}/store.php" id="search_event">搜活动</a>
	<a href="javascript:void(0);" ctl="ss" act="pick" action="{$APP_ROOT}/shop.php" id="search_ss" >{$LANG.SEARCH_TYPE_GOODS}</a>
	<a href="javascript:void(0);" ctl="topic" act="search" action="{$APP_ROOT}/shop.php" id="search_topic">{$LANG.SEARCH_TYPE_TOPIC}</a>
</div>	
	<div class="header">
		<div class="wrap constr">
			<div class="top_nav">
				<div class="wrap">
					<div class="f_r">
						<span id="user_head_tip">
						{insert name="load_user_tip"}
						</span>
						
					</div>
				</div>
			</div><!--end top_nav-->
			<div class="blank1"></div>
			<div class="wrap logo_row">
				<div class="logo f_l">
				<a class="link" href="{$APP_ROOT}/">
					<?php
						$this->_var['logo_image'] = app_conf("SHOP_LOGO");
					?>
					{function name="load_page_png" v=$logo_image}
				</a>
				</div>
				{if count($deal_city_list) gt 1}  
				<div class="now_city f_l">       			 
					<h3>{$deal_city.name}</h3>
					<a href="{url x="shop" r="city"}" class="switch_city">贝壳田园</a>
				</div>
				{/if}
				<script type="text/javascript">
					$(document).ready(function(){
						{if $MODULE_NAME eq 'mall' or $MODULE_NAME eq 'cate' or $MODULE_NAME eq 'goods'}
						$("#search_ss").click();
						{elseif $MODULE_NAME eq 'topic' or $MODULE_NAME eq 'discover' or $MODULE_NAME eq 'group' or $MODULE_NAME eq 'daren'}
						$("#search_topic").click();
						{elseif $APP_INDEX eq 'tuan'}
						$("#search_tuan").click();
						{elseif $MODULE_NAME eq 'index' and $ACTION_NAME eq 'daijin_index'}
						$("#search_ycate").click();
						{else}
						$("#search_{$MODULE_NAME}").click();
						{/if}
						
					});
				</script>
							
				<form id="header_search_box" action="{$APP_ROOT}/store.php" method="post">
					<div class="search_box f_r">					
						<div class="search_input f_l">						
						<span class="search_type_select" id="select_search_type">
							搜商家
						</span>									
						<input type="text" class="search_txt" name="keyword" id="header_kw" value="{insert name="load_keyword"}" x-webkit-speech="" x-webkit-grammar="builtin:translate"  />
						<input type="button" class="search_btn" id="search_btn" value="搜索" />
						</div>
						<div class="blank1"></div>
						<div class="keyword_box f_l">
						{foreach from=$hot_kw item=kw_item}
						<a href="{url x="shop" r="discover" p="tag=$kw_item"}">{$kw_item}</a>
						{/foreach}
						</div>
					</div>		
					<input type="hidden" name="act" id="search_act" value="index" />
					<input type="hidden" name="ctl" id="search_ctl" value="store" />				
					<input type="hidden" name="is_redirect" value="1" />
				</form>					
			</div><!--end wrap-->
		</div>
		<script type="text/javascript">
		 $(document).ready(function(){	
			$('.index_fenlei .sub_fenlei').parent().mouseenter(function(){
                    //alert(999);
				$(this).css({background:'#f5f4f3',"border-left":'1px solid #cccccc',"border-bottom":'1px solid #cccccc'});
				$(this).find('dd a').css('color','#876E69');
				//$(this).find('dd').eq(0).addClass('dd_cur');
				$(this).find('.index_fl').css('border','none');
				$(this).find('.sub_fenlei').show();
			}).mouseleave(function(){
				$(this).css({background:'',border:'none'});
				$(this).find('dd a').css('color','#414141');
				$(this).find('.index_fl').css('border-bottom','1px solid #cccccc');
				//$(this).find('dd').eq(0).removeClass('dd_cur');
				$(this).find('.sub_fenlei').hide();
			});	
        });	
		</script>
		<div class="main_bar">
			<div class="wrap">				
				<ul class="main_nav">
					<li class="all_class" style="background-image:none;">
							全部分类筛选
						<div class="class_con">
								<dl class="index_fenlei" style="height:117px">
							 	<dt class="fenlei" style="padding-top:5px;">菜系分类</dt>
								<dd class="index_fl">
									{foreach from=$index_cate_list item=h_cate name=h_cate}
									 {if $smarty.foreach.h_cate.index lt 11}
	                    				<a href="{$h_cate.url}" target="_blank" class="">{$h_cate.name}</a>
									 {/if}
									{/foreach}
	                    		</dd>
								<dd class="sub_fenlei">
	                    			{foreach from=$index_cate_list item=h_cate name=h_cate}
	                    				<a href="{$h_cate.url}" target="_blank" class="">{$h_cate.name}({$h_cate.count})</a>
									{/foreach}
								</dd>
							</dl>
							<dl class="index_fenlei" style="height:108px">
							 	<dt class="fenlei">地理位置</dt>
								<dd class="index_fl">
									{foreach from=$index_area_list item=h_area name=h_area}
									 {if $smarty.foreach.h_area.index lt 9}
	                    				<a href="{$h_area.url}" target="_blank" class="">{$h_area.name}</a>
									 {/if}
									{/foreach}
	                    		</dd>
								<dd class="sub_fenlei">
	                    			{foreach from=$index_area_list item=h_area name=h_area}
	                    				<a href="{$h_area.url}" target="_blank" class="">{$h_area.name}({$h_area.count})</a>
									{/foreach}
								</dd>
							</dl>
							
							<dl class="index_fenlei" style="height:84px">
							 	<dt class="fenlei">餐厅氛围</dt>
								<dd class="index_fl">
									{foreach from=$index_purpose_list item=h_purpose name=h_purpose}
									 {if $smarty.foreach.h_purpose.index lt 4}
	                    				<a href="{$h_purpose.url}" target="_blank" class="">{$h_purpose.name}</a>
									 {/if}
									{/foreach}
	                    		</dd>
								<dd class="sub_fenlei">
	                    			{foreach from=$index_purpose_list item=h_purpose name=h_purpose}
	                    				<a href="{$h_purpose.url}" target="_blank" class="">{$h_purpose.name}({$h_purpose.count})</a>
									{/foreach}
								</dd>
							</dl>
							<dl class="index_fenlei">
							 	<dt class="fenlei" style="background:none">人均消费</dt>
								<dd class="index_fl" style="border:none;">
									{foreach from=$index_avg_price item=h_avg name=h_avg}
									 {if $smarty.foreach.h_avg.index lt 8}
	                    				<a href="{$h_area.url}" target="_blank" class="">{$h_avg.name}</a>
									 {/if}
									{/foreach}
	                    		</dd>								
							</dl>
						</div>	
					</li>
					{foreach from=$nav_list item=nav_item}
						<li {if $nav_item.current eq 1}class="current"{/if}>
							<a href="{$nav_item.url}"  target="{if $nav_item.blank eq 1}_blank{/if}">{$nav_item.name}</a>
						</li>
					{/foreach}
					<div style="clear:both;"></div>
				</ul>	
			</div>
		</div><!--end main_nav-->
	</div>
	
	
	{if $is_index eq 1 and $APP_INDEX eq 'tuan'}
	<script type="text/javascript">
		function set_sort(type)
		{
			var ajaxurl = APP_ROOT+"/tuan.php?ctl=ajax&act=set_sort_idx&type="+type;
			$.ajax({ 
				url: ajaxurl,
				success: function(text){
					location.reload();
				},
				error:function(ajaxobj)
				{
//					if(ajaxobj.responseText!='')
//					alert(ajaxobj.responseText);
				}
			});
		}
	</script>
	<div class="blank"></div>
	<div class="filter_contain cf">
		<div class="cate_row cf">
			<b class="fl">{$LANG.CATE_DEAL}：&nbsp;</b>
			<span class="row fl">
			{foreach from=$bcate_list item=bcate}
			<a href="{$bcate.url}" title="{$bcate.name}" {if $bcate.current eq 1}class="current"{/if}>{$bcate.name}({$bcate.count})</a>			
			{/foreach}
			</span>
		</div>
		<div class="blank1"></div>
		{if $scate_list}		
		<div class="sub_cate_row">
			{foreach from=$scate_list item=scate}		
			<a href="{$scate.url}" title="{$scate.name}" {if $scate.current eq 1}class="current"{/if}>{$scate.name}({$scate.count})</a>
			{/foreach}
		</div>
		{/if}
		
		{if count($bquan_list) gt 1}
		<div class="quan_row cf">
			<b class="fl">{$LANG.AREA_LIST}：&nbsp;</b>
			<span class="row fl">
				{foreach from=$bquan_list item=bquan}
				<a href="{$bquan.url}" title="{$bquan.name}" {if $bquan.current eq 1}class="current"{/if}>{$bquan.name}({$bquan.count})</a>
				{/foreach}
			</span>
		</div>
		{/if}
		<div class="blank1"></div>
		{if $squan_list}		
		<div class="sub_cate_row">
			{foreach from=$squan_list item=squan}		
			<a href="{$squan.url}" title="{$squan.name}" {if $squan.current eq 1}class="current"{/if}>{$squan.name}({$squan.count})</a>
			{/foreach}
		</div>
		{/if}
		{if !$hide_sort}
		<div class="sort_row">
			<b>{$LANG.SORT_TYPE}：</b>
			<a href="javascript:void(0);" onclick="set_sort('begin_time');" class="asc_gray {if $sort_field eq 'begin_time'}current idx_{$sort_type}{/if}">{$LANG.SORT_BEGIN_TIME}</a>
			<a href="javascript:void(0);" onclick="set_sort('current_price');" class="desc_gray {if $sort_field eq 'current_price'}current idx_{$sort_type}{/if}">{$LANG.SORT_CURRENT_PRICE}</a>
			<a href="javascript:void(0);" onclick="set_sort('buy_count');" class="asc_gray {if $sort_field eq 'buy_count'}current idx_{$sort_type}{/if}">{$LANG.SORT_BUY_COUNT}</a>
			<a href="javascript:void(0);" onclick="set_sort('sort');" class="desc_gray {if $sort_field eq 'sort'}current idx_{$sort_type}{/if}">{$LANG.SORT_SORT}</a>
		</div>
		{/if}
	</div>
	{/if}
	
<div style="height:auto">
	{if $site_nav}
	<div class="blank"></div>
	<div class="site_nav clearfix">
		<div class="f_l">
		{foreach from=$site_nav item=nav key=key}
		{if $key gt 0} - {/if}<a href="{$nav.url}" title="{$nav.name}">{function name="msubstr" v=$nav.name}</a>
		{/foreach}
		</div>
		{if $show_share}
		<div class="f_r">
			<!-- JiaThis Button BEGIN -->
			
			<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1343270697304181" charset="utf-8"></script>
			<!-- JiaThis Button END -->
		</div>
		{/if}
		{if $show_fav}
		<div class="f_r">			
			<a href="javascript:void(0);" class="fav-store FW-FAV-STORE" dataid="{$store_info.id}">{$LANG.fav_store}</a>	
			&nbsp;|&nbsp;&nbsp;
			
		</div>
		{/if}
	</div>	
	{/if}
